using System;
using System.Collections.Generic;

namespace Northwind.V2.Domain
{


    public partial class Purchase
    {
        public Purchase()
        {
            this.PurchaseItems = new HashSet<PurchaseItem>();
        }

        public int ID { get; set; }
        public Nullable<int> CustomerID { get; set; }
        public System.DateTime Date { get; set; }
        public string Description { get; set; }
        public decimal Price { get; set; }

        public virtual Customer Customer { get; set; }
        public virtual ICollection<PurchaseItem> PurchaseItems { get; set; }
        public override string ToString()
        {
            return $"\tPurchaseID:{ID},CustomerID:{CustomerID},Desciption:{Description},Price:{Price},Date:{Date}\n";
        }
    }
}
